package com.sztle.admodule.bean;

import androidx.annotation.Keep;

import com.google.gson.Gson;

import java.util.ArrayList;
import java.util.List;

@Keep
public class AdDataInfo {
    public int ipu;
    public int ecpm;//实时值
    public int sumEcpm;//总和
    public long lastTime;
    public List<Integer> ecpmList = new ArrayList<>();

    public String toJsonStr() {
        Gson gson = new Gson();
        return gson.toJson(this);
    }

    public static AdDataInfo fromJsonStr(String jsonStr) {
        Gson gson = new Gson();
        return gson.fromJson(jsonStr, AdDataInfo.class);
    }
}
